home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d21
/
dvglue10.arc
/
DVINIT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-08-13
|
2KB
|
61 lines
/*=======================================================*/
/* DVINIT.C */
/* initialize/exit API interface */
/* */
/* (c) Copyright 1988 Ralf Brown All Rights Reserved */
/* May be freely copied for noncommercial use, so long */
/* as this copyright notice remains intact, and any */
/* changes are marked in the comment blocks preceding */
/* functions. */
/*=======================================================*/
#include "tvapi.h"
/*=======================================================*/
/* DVinit initialize DESQview API interface, and */
/* return version (0 if DV not loaded) */
/* Ralf Brown 4/23/88 */
/*=======================================================*/
int pascal DVinit(void)
{
int version ;
TVinit() ;
if ((version = DVver()) > 0)
{
_BX = 0x0200 ; /* set minimum required API level to 2 */
_AX = 0x110B ;
geninterrupt(0x15) ;
if (_AX == 0x0002)
{
_BX = 0x0002 ;
_AX = 0x110B ;
geninterrupt(0x15) ;
}
}
else
return 0 ;
if (version > 0x200)
{
/* v2.01-specific API call */
_AX = 0x1112 ;
_BX = 1 ;
geninterrupt(0x15) ;
}
return version ;
}
/*=======================================================*/
/* DVexit exit DESQview API interface */
/* Ralf Brown 4/23/88 */
/*=======================================================*/
void pascal DVexit(void)
{
TVexit() ;
/* currently nothing else to do */
}
/* End of DVINIT.C */